package com.thm.tfast.core.constant;

/**
 * @author THM
 * @date 2022/10/27
 * @desc minio bucket
 */
public class MinioBucketConstant {
    public static String DEFAULT_BUCKET = "default";
    public static String USER_BUCKET = "user";

    public static String getBucket(Integer type){
        String bucketName;
        switch (type){
            case 1:
                bucketName = USER_BUCKET;
                break;
            default:
                bucketName = DEFAULT_BUCKET;
        }
        return bucketName;
    }
}
